package com.shuda.business.engine.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 撞库检测配置DTO
 * 用于接收和返回撞库检测配置数据
 * 
 * @author ink
 * @Description: 撞库检测配置DTO
 * @date 2024-10-10 14:45:00
 */
@Data
@Schema(description = "撞库检测配置DTO")
public class CollisionCheckDTO {

    @Schema(description = "配置ID")
    private Long id;

    @Schema(description = "配置名称", required = true)
    @NotBlank(message = "配置名称不能为空")
    private String configName;

    @Schema(description = "检测字段", required = true)
    @NotBlank(message = "检测字段不能为空")
    private String checkField;

    @Schema(description = "检测规则(JSON格式存储)", required = true)
    @NotBlank(message = "检测规则不能为空")
    private String checkRule;

    @Schema(description = "匹配阈值")
    @NotNull(message = "匹配阈值不能为空")
    private Double matchThreshold;

    @Schema(description = "处理方式(allow-允许,reject-拒绝,review-人工审核)")
    private String handleType;

    @Schema(description = "状态(enabled-启用,disabled-禁用)")
    private String status;

    @Schema(description = "描述信息")
    private String description;
}